Optimal. Leaf size=116 \[ \frac {5 b^2 \sqrt {b \sqrt {x}+a x}}{4 a^3}-\frac {5 b \sqrt {x} \sqrt {b \sqrt {x}+a x}}{6 a^2}+\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}-\frac {5 b^3 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{4 a^{7/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 116, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.294, Rules used = {2043, 684, 654,
634, 212} \begin {gather*} -\frac {5 b^3 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {a x+b \sqrt {x}}}\right )}{4 a^{7/2}}+\frac {5 b^2 \sqrt {a x+b \sqrt {x}}}{4 a^3}-\frac {5 b \sqrt {x} \sqrt {a x+b \sqrt {x}}}{6 a^2}+\frac {2 x \sqrt {a x+b \sqrt {x}}}{3 a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 634
Rule 654
Rule 684
Rule 2043
Rubi steps
\begin {align*} \int \frac {x}{\sqrt {b \sqrt {x}+a x}} \, dx &=2 \text {Subst}\left (\int \frac {x^3}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )\\ &=\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}-\frac {(5 b) \text {Subst}\left (\int \frac {x^2}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{3 a}\\ &=-\frac {5 b \sqrt {x} \sqrt {b \sqrt {x}+a x}}{6 a^2}+\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}+\frac {\left (5 b^2\right ) \text {Subst}\left (\int \frac {x}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{4 a^2}\\ &=\frac {5 b^2 \sqrt {b \sqrt {x}+a x}}{4 a^3}-\frac {5 b \sqrt {x} \sqrt {b \sqrt {x}+a x}}{6 a^2}+\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}-\frac {\left (5 b^3\right ) \text {Subst}\left (\int \frac {1}{\sqrt {b x+a x^2}} \, dx,x,\sqrt {x}\right )}{8 a^3}\\ &=\frac {5 b^2 \sqrt {b \sqrt {x}+a x}}{4 a^3}-\frac {5 b \sqrt {x} \sqrt {b \sqrt {x}+a x}}{6 a^2}+\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}-\frac {\left (5 b^3\right ) \text {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {\sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{4 a^3}\\ &=\frac {5 b^2 \sqrt {b \sqrt {x}+a x}}{4 a^3}-\frac {5 b \sqrt {x} \sqrt {b \sqrt {x}+a x}}{6 a^2}+\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}-\frac {5 b^3 \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {x}}{\sqrt {b \sqrt {x}+a x}}\right )}{4 a^{7/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.17, size = 95, normalized size = 0.82 \begin {gather*} \frac {\sqrt {b \sqrt {x}+a x} \left (15 b^2-10 a b \sqrt {x}+8 a^2 x\right )}{12 a^3}+\frac {5 b^3 \log \left (a^3 b+2 a^4 \sqrt {x}-2 a^{7/2} \sqrt {b \sqrt {x}+a x}\right )}{8 a^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(180\) vs.
\(2(84)=168\).
time = 0.38, size = 181, normalized size = 1.56
method | result | size |
derivativedivides | \(\frac {2 x \sqrt {b \sqrt {x}+a x}}{3 a}-\frac {5 b \left (\frac {\sqrt {x}\, \sqrt {b \sqrt {x}+a x}}{2 a}-\frac {3 b \left (\frac {\sqrt {b \sqrt {x}+a x}}{a}-\frac {b \ln \left (\frac {\frac {b}{2}+a \sqrt {x}}{\sqrt {a}}+\sqrt {b \sqrt {x}+a x}\right )}{2 a^{\frac {3}{2}}}\right )}{4 a}\right )}{3 a}\) | \(99\) |
default | \(\frac {\sqrt {b \sqrt {x}+a x}\, \left (16 \left (b \sqrt {x}+a x \right )^{\frac {3}{2}} a^{\frac {5}{2}}-36 \sqrt {b \sqrt {x}+a x}\, \sqrt {x}\, a^{\frac {5}{2}} b -18 \sqrt {b \sqrt {x}+a x}\, a^{\frac {3}{2}} b^{2}+48 \sqrt {\sqrt {x}\, \left (a \sqrt {x}+b \right )}\, a^{\frac {3}{2}} b^{2}-24 a \ln \left (\frac {2 a \sqrt {x}+2 \sqrt {\sqrt {x}\, \left (a \sqrt {x}+b \right )}\, \sqrt {a}+b}{2 \sqrt {a}}\right ) b^{3}+9 \ln \left (\frac {2 a \sqrt {x}+2 \sqrt {b \sqrt {x}+a x}\, \sqrt {a}+b}{2 \sqrt {a}}\right ) a \,b^{3}\right )}{24 a^{\frac {9}{2}} \sqrt {\sqrt {x}\, \left (a \sqrt {x}+b \right )}}\) | \(181\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x}{\sqrt {a x + b \sqrt {x}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.15, size = 83, normalized size = 0.72 \begin {gather*} \frac {1}{12} \, \sqrt {a x + b \sqrt {x}} {\left (2 \, \sqrt {x} {\left (\frac {4 \, \sqrt {x}}{a} - \frac {5 \, b}{a^{2}}\right )} + \frac {15 \, b^{2}}{a^{3}}\right )} + \frac {5 \, b^{3} \log \left ({\left | -2 \, \sqrt {a} {\left (\sqrt {a} \sqrt {x} - \sqrt {a x + b \sqrt {x}}\right )} - b \right |}\right )}{8 \, a^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x}{\sqrt {a\,x+b\,\sqrt {x}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________